package com.springweb.unit3.property;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.core.env.Environment;

import com.springweb.unit3.property.impl.BlankDisc;

@Configuration
@PropertySource("classpath:/property/cd.properties")
public class CDConfig {

	@Autowired
	Environment env;
	
	@Bean
	public CompactDisc blankDisc() {
		return new BlankDisc(env.getProperty("disc.title"), env.getProperty("disc.artist"));
	}
}
